package com.scnu.hachimi.element;

import com.scnu.hachimi.manager.ResourcesManager;

import java.awt.*;


public abstract class ElementObject {
    String img;
    int x;
    int y;
    int w;
    int h;

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }


    public int getW() {
        return w;
    }

    public int getH() {
        return h;
    }

    public ElementObject(String img, int x, int y, int width, int height) {
        this.img = img;
        this.x = x;
        this.y = y;
        this.w = width;
        this.h = height;
    }

    public abstract void paintSelf(Graphics g, ResourcesManager rm);

    public abstract Rectangle getRect();
}

